import request from '@/utils/request'

// 查询用药咨询列表
export function listMedicationAdvisory(query) {
  return request({
    url: '/workstation/medicationAdvisory/list',
    method: 'get',
    params: query
  })
}

// 查询用药咨询详细
export function getMedicationAdvisory(id) {
  return request({
    url: '/workstation/medicationAdvisory/' + id,
    method: 'get'
  })
}

// 新增用药咨询
export function addMedicationAdvisory(data) {
  return request({
    url: '/workstation/medicationAdvisory',
    method: 'post',
    data: data
  })
}

// 修改用药咨询
export function updateMedicationAdvisory(data) {
  return request({
    url: '/workstation/medicationAdvisory',
    method: 'put',
    data: data
  })
}

// 删除用药咨询
export function delMedicationAdvisory(id) {
  return request({
    url: '/workstation/medicationAdvisory/' + id,
    method: 'delete'
  })
}
